// samsting : this file is auto create.

#include "Drds/2015-04-13/DescribeDrdsInstancesResponse.h"

namespace aliyun { namespace Drds {

DescribeDrdsInstancesResponse::DescribeDrdsInstancesResponse() {
}

const string& DescribeDrdsInstancesResponse::Instance::Vip::GetIP(void) const {
  return IP_;
}

const string& DescribeDrdsInstancesResponse::Instance::Vip::GetPort(void) const {
  return Port_;
}

const string& DescribeDrdsInstancesResponse::Instance::Vip::GetType(void) const {
  return Type_;
}

const std::vector<DescribeDrdsInstancesResponse::Instance::Vip>& DescribeDrdsInstancesResponse::Instance::GetVips(void) const {
  return Vips_;
}

const string& DescribeDrdsInstancesResponse::Instance::GetDrdsInstanceId(void) const {
  return DrdsInstanceId_;
}

const string& DescribeDrdsInstancesResponse::Instance::GetType(void) const {
  return Type_;
}

const string& DescribeDrdsInstancesResponse::Instance::GetRegionId(void) const {
  return RegionId_;
}

const string& DescribeDrdsInstancesResponse::Instance::GetZoneId(void) const {
  return ZoneId_;
}

const string& DescribeDrdsInstancesResponse::Instance::GetDescription(void) const {
  return Description_;
}

const string& DescribeDrdsInstancesResponse::Instance::GetNetworkType(void) const {
  return NetworkType_;
}

const string& DescribeDrdsInstancesResponse::Instance::GetStatus(void) const {
  return Status_;
}

int64 DescribeDrdsInstancesResponse::Instance::GetCreateTime(void) const {
  return CreateTime_;
}

int64 DescribeDrdsInstancesResponse::Instance::GetVersion(void) const {
  return Version_;
}

const std::vector<DescribeDrdsInstancesResponse::Instance>& DescribeDrdsInstancesResponse::GetData(void) const {
  return Data_;
}

bool DescribeDrdsInstancesResponse::GetSuccess(void) const {
  return Success_;
}

const char* DescribeDrdsInstancesResponse::BaseKey(void) {
  return "DescribeDrdsInstancesResponse";
}

void DescribeDrdsInstancesResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Data__length = 0;
  UnmarshallerInt(Data__length, response_map, "DescribeDrdsInstancesResponse.Data.Length");
  if(Data__length >= 0) {
    Data_.resize(Data__length);
    for(int i1 = 0; i1 < Data__length; i1++) {
      int Data_i1_Vips__length = 0;
      UnmarshallerInt(Data_i1_Vips__length, response_map, "DescribeDrdsInstancesResponse.Data[+"+string_ValueOfInt(i1)+"].Vips.Length");
      if(Data_i1_Vips__length >= 0) {
        Data_[i1].Vips_.resize(Data_i1_Vips__length);
        for(int i2 = 0; i2 < Data_i1_Vips__length; i2++) {
          UnmarshallerString(Data_[i1].Vips_[i2].IP_, response_map, "DescribeDrdsInstancesResponse.Data[+"+string_ValueOfInt(i1)+"].Vips["+string_ValueOfInt(i2)+"].IP");
          UnmarshallerString(Data_[i1].Vips_[i2].Port_, response_map, "DescribeDrdsInstancesResponse.Data[+"+string_ValueOfInt(i1)+"].Vips["+string_ValueOfInt(i2)+"].Port");
          UnmarshallerString(Data_[i1].Vips_[i2].Type_, response_map, "DescribeDrdsInstancesResponse.Data[+"+string_ValueOfInt(i1)+"].Vips["+string_ValueOfInt(i2)+"].Type");
        } // for(int i2 = 0; i2 < Data_i1_Vips__length; i2++) {
      } // if(Data_i1_Vips__length >= 0) {

      UnmarshallerString(Data_[i1].DrdsInstanceId_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].DrdsInstanceId");
      UnmarshallerString(Data_[i1].Type_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].Type");
      UnmarshallerString(Data_[i1].RegionId_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].RegionId");
      UnmarshallerString(Data_[i1].ZoneId_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].ZoneId");
      UnmarshallerString(Data_[i1].Description_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].Description");
      UnmarshallerString(Data_[i1].NetworkType_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].NetworkType");
      UnmarshallerString(Data_[i1].Status_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerInt64(Data_[i1].CreateTime_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].CreateTime");
      UnmarshallerInt64(Data_[i1].Version_, response_map, "DescribeDrdsInstancesResponse.Data["+string_ValueOfInt(i1)+"].Version");
    } // for(int i1 = 0; i1 < Data__length; i1++) {
  } // if(Data__length >= 0) {

  UnmarshallerBool(Success_, response_map, "DescribeDrdsInstancesResponse.Success");
}


} } // namespace aliyun { namespace Drds {

// end of file 
